import request from '@/utils/request'

export function cashSettlements(data) {
  return request({
    url: '/cash/cashSettlements',
    method: 'post',
    data
  })
}

export function cashDetails(data) {
  return request({
    url: '/cash/cashDetails',
    method: 'post',
    data
  })
}

export function cashSummary(data) {
  return request({
    url: '/cash/summary',
    method: 'post',
    data
  })
}

const amountDifferenceApi = {
  // 新增金额差异记录
  add(data) {
    return request({
      url: '/cash/amountdiff/add',
      method: 'post',
      data
    })
  },

  // 编辑金额差异记录
  edit(data) {
    return request({
      url: '/cash/amountdiff/edit',
      method: 'post',
      data
    })
  },

  // 查询金额差异记录分页列表
  page(params) {
    return request({
      url: '/cash/amountdiff/page',
      method: 'get',
      params
    })
  },

  // 批量启用/禁用金额差异记录
  enableBatch(data) {
    return request({
      url: '/cash/amountdiff/enableBatch',
      method: 'post',
      data
    })
  },

  // 批量删除金额差异记录
  deletedBatch(data) {
    return request({
      url: '/cash/amountdiff/deletedBatch',
      method: 'post',
      data
    })
  }
}

export default amountDifferenceApi
